package com.instance.demo2;

public class Person implements China{
   
    private String name;  
    private int age;  
	
    public String getName() {
		return name;
	}

	public void setName(String name) {
		System.out.println("setName"+name);
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Person() {
		super();
	}
	public Person(int age) {
		super();
		this.age = age;
	}
	public Person(String name) {
		super();
		this.name = name;
	}
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	@Override  
    public String toString(){  
    	return "["+this.name+"  "+this.age+"]";  
    }

	@Override
	public void sayChina() {
		System.out.println("sayChina");
	}

	public void sayHello(String name) {
		System.out.println("sayHello"+"["+name+"]");
	}  
	@Override
	public void sayHello(String name, int age) {
		System.out.println("sayHello"+"["+name+"  "+age+"]");
	}  

}
